package nuonuo.com.view.retrofit_interface;

import java.util.Map;

import io.reactivex.Observable;
import nuonuo.com.view.bean.User;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.QueryMap;

/**
 * Created by n6 on 2017/3/13.
 */

public interface LoginService {
    @POST("{num}")
    Call<User> login(@Path("num") String num, @QueryMap Map<String,String> map);

    @POST("{num}")
    Observable<User> loginIn(@Path("num") String num, @QueryMap Map<String,String> map);

    @POST("{num}")
    Observable<ResponseBody> getData(@Path("num") String num, @QueryMap Map<String,String> map);
}
